import request from "@/utils/request";
//获取数据
export function getlist(data) {
  return request({
    url: 'back/enterprise/query',
    method: "get",
    params: data
  })
}
// 单个id查询企业信息
export function getlistID(id) {
  return request({
    url: 'back/enterprise/queryone?id=' + id,
    method: "get"
  })
}
// 通过审核
export function passaudit(data) {
  return request({
    url: '/back/enterprise/dostatus',
    method: "put",
    params: data
  })
}
// 企业查询
export function getSearch(data) {
  return request({
    url: "/back/enterprise/query",
    method: "get",
    params: data
  })
}

// 删除企业
export function handleDelete(id) {
  return request({
    url: "back/enterprise/delete?id=" + id,
    method: 'DELETE',
  })
}
// 新增企业
export function handleAdd(data) {
  return request({
    url: "back/enterprise/add",
    method: 'POST',
    data: data
  })
}